set term postscript eps enhanced color

# Average in-degree

set output "in-degree.eps"
set xlabel "Round of the algorithm"
set ylabel "Average in-degree distribution"
set xrange [0:200]
#set yrange [0:500]

plot "cyclon.dat" using 1:2 with linespoints title "Average in-degree in Cyclon"

# Average path length

set output "path_length.eps"
set xlabel "Round of the algorithm"
set ylabel "Average path length"
set xrange [0:30]
#set yrange [0:500]

plot "cyclon.dat" using 1:3 with linespoints title "Average path length in Cyclon"

# Clustering coefficient

set output "clust_coef.eps"
set xlabel "Round of the algorithm"
set ylabel "Clustering coefficient"
set xrange [0:200]
#set yrange [0:500]

plot "cyclon.dat" using 1:4 with linespoints title "Clustering coefficient in Cyclon"

# Diameter 

set output "diameter.eps"
set xlabel "Round of the algorithm"
set ylabel "Diameter of the graph"
set xrange [0:30]
#set yrange [0:500]

plot "cyclon.dat" using 1:5 with linespoints title "Diameter in Cyclon"

# Peers

set output "peers.eps"
set xlabel "Round of the algorithm"
set ylabel "Number of peers in the system"
set xrange [0:10]
#set yrange [0:500]

plot "cyclon.dat" using 1:6 with linespoints title "Number of peers"

# in-degree distribution a iteration 100

set output "in-degree_distribution.eps"
set xlabel "In-degree"
set ylabel "Number of nodes"
set boxwidth 1
set xrange [3:18]
set yrange [0:9]

plot "indegree_distrib.dat" using 1:2 title "In-degree distribution" with boxes

